package com.haven.webrobotserver.service.impl;

import com.haven.webrobotserver.dao.mybatis.mapper.TestplanMapper;
import com.haven.webrobotserver.domain.Testplan;
import com.haven.webrobotserver.service.TestplanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TestplanServiceImpl implements TestplanService {

    @Autowired(required = false)
    private TestplanMapper testplanMapper;

    @Override
    public List<Map<String, String>> getTestplanList(Map params) {
        return testplanMapper.getTestplanList(params);
    }

    @Override
    public void insertOne(Testplan testplan) {
        testplanMapper.insertOne(testplan);
    }
}
